function columns(vm) {
  const cols = [
    {
      title: '序号',
      align: 'left',
      dataIndex: 'xu',
      width: 60,
      key: 'xu'
    },
    {
      title: '抽调人员姓名',
      align: 'left',
      dataIndex: 'name',
      scopedSlots: {customRender: 'name'},
      key: 'name'
    },
    {
      title: '抽调时间',
      align: 'left',
      dataIndex: 'time',
      scopedSlots: {customRender: 'time'},
      key: 'time'
    },
    {
      title: '发生费用',
      align: 'left',
      children: [
        {
          title: '交通费',
          align: 'left',
          dataIndex: 'traffic',
          scopedSlots: {customRender: 'traffic'},
          key: 'traffic'
        },
        {
          title: '住宿费',
          align: 'left',
          dataIndex: 'stay',
          scopedSlots: {customRender: 'stay'},
          key: 'stay'
        },
        {
          title: '出差补助',
          align: 'left',
          dataIndex: 'business',
          scopedSlots: {customRender: 'business'},
          key: 'business'
        },
        {
          title: '小计',
          align: 'left',
          dataIndex: 'subtotal',
          scopedSlots: {customRender: 'subtotal'},
          key: 'subtotal'
        }
      ]
    },
    {
      dataIndex: 'action',
      align: 'left',
      slots: { title: 'actionName' },
      scopedSlots: {customRender: 'action'},
      key:'action'
    }
  ]
  return cols
}

export default columns